import service from '@/utils/request'



//127.0.0.1:19090/system/student/list
export function getStudentListService(params) {
    return service({
        url: "/student/list",
        method: "get",
        params
    });
}

export function getStudentDetailService(studentId) {
    return service({
        url: "/student/detail",
        method: "get",
        params: { studentId },
    });
}

export function delStudentService(studentId) {
    return service({
        url: "/student/delete",
        method: "delete",
        params: { studentId },
    });
}

export function editStudentService(params = {}) {
    return service({
        url: "/student/edit",
        method: "put",
        data: params,
    });
}

export function updateStatusStudentService(params = {}) {
    return service({
        url: "/student/updateStatus",
        method: "put",
        data: params,
    });
}

// 拉黑学生
export function blacklistStudentService(studentId) {
    return service({
        url: "/student/blacklist",
        method: "put",
        params: { studentId },
    });
}

// 恢复学生正常状态
export function restoreStudentService(studentId) {
    return service({
        url: "/student/restore",
        method: "put",
        params: { studentId },
    });
}

// 更新学生班级
export function updateStudentClassroomService(params = {}) {
    return service({
        url: "/student/updateClassroom",
        method: "put",
        data: params,
    });
}